﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/master/default.master" Inherits="gms.page.admin.aclmgr_edit, Game Management Library" %>
<%@ Import Namespace="gms.system" %>
<asp:Content ContentPlaceHolderID="page_title" runat="server">Admin Home</asp:Content>
<asp:Content ContentPlaceHolderID="page_head" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_messages" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="body_content" runat="server">
<form action="aclmgr_edit.aspx?id=<%= group.acl_id %>" method="post">
	<table>
		<tr>
			<td>Name</td>
			<td><input type="text" id="group_name" name="group_name" value="<%= group.name %>" /></td>
		</tr>
		<tr>
			<td>Description</td>
			<td><input type="text" id="group_desc" name="group_desc" value="<%= group.description %>" /></td>
		</tr>
	</table>
	Permissions
	<table>
		<tr>
			<td>Manage Players</td>
			<td><input type="checkbox" id="manage_players" name="manage_players" <% if (group.test(Acl_Type.Manage_Players)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Acl Groups</td>
			<td><input type="checkbox" id="manage_aclgroups" name="manage_aclgroups" <% if (group.test(Acl_Type.Manage_Aclgroups)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Plugins</td>
			<td><input type="checkbox" id="manage_plugins" name="manage_plugins" <% if (group.test(Acl_Type.Manage_Plugins)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Opcodes</td>
			<td><input type="checkbox" id="manage_opcodes" name="manage_opcodes" <% if (group.test(Acl_Type.Manage_Opcodes)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Flagged Content</td>
			<td><input type="checkbox" id="manage_flaggedcontent" name="manage_flaggedcontent" <% if (group.test(Acl_Type.Manage_Flaggedcontent)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Campaigns</td>
			<td><input type="checkbox" id="manage_campaigns" name="manage_campaigns" <% if (group.test(Acl_Type.Manage_Campaigns)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Manage Uploads</td>
			<td><input type="checkbox" id="manage_uploads" name="manage_uploads" <% if (group.test(Acl_Type.Manage_Uploads)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Create Campaigns</td>
			<td><input type="checkbox" id="create_campaigns" name="create_campaigns" <% if (group.test(Acl_Type.Create_Campaigns)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
		<tr>
			<td>Create Uploads</td>
			<td><input type="checkbox" id="create_uploads" name="create_uploads" <% if (group.test(Acl_Type.Create_Uploads)) { Response.Write("checked=\"checked\""); } %> /></td>
		</tr>
	</table>
	<input type="submit" />
</form>
</asp:Content>